﻿using System;

class Program
{
    static void Main()
    {
        //Begin:
        string input = Console.ReadLine();
        char[] chars = input.ToCharArray();

        long oddsCounter = 0;
        long oddsSum = 0;

        for (int i = 0; i < chars.Length; i++)
        {
            if (i % 2 != 0 && chars[i] >= 48 && chars[i] <= 57)
            {
                oddsCounter++;
                if (chars[i] == 49)
                {
                    oddsSum += 1;
                }
                else if (chars[i] == 50)
                {
                    oddsSum += 2;
                }
                else if (chars[i] == 51)
                {
                    oddsSum += 3;
                }
                else if (chars[i] == 52)
                {
                    oddsSum += 4;
                }
                else if (chars[i] == 53)
                {
                    oddsSum += 5;
                }
                else if (chars[i] == 54)
                {
                    oddsSum += 6;
                }
                else if (chars[i] == 55)
                {
                    oddsSum += 7;
                }
                else if(chars[i] == 56)
                {
                    oddsSum += 8;
                }
                else if (chars[i] == 57)
                {
                    oddsSum += 9;
                }
            }
        }

        Console.WriteLine("{0} {1}", oddsCounter, oddsSum);
        //goto Begin;
    }
}